@import "../../../global/stylesheet/components/_carousel";
@import "../../../global/redesign/utility/mixins/media-query";

.subheading {
	color: rgb(175, 175, 175);
	font-weight: 500;
}

.c-group {
	display: flex;

	scroll-snap-align: start;
	align-items: flex-start;

	position: relative;
	&::before {
		display: block;
		content: "";
		position: absolute;

		padding-top: calc(100% * 2 / 3);
	}
}

.left,
.right {
	position: absolute;
	top: 40%;
	z-index: 1;
	bottom: 0;
	pointer-events: all;
	cursor: pointer;
	will-change: opacity, visibility;
	background-color: hsl(0deg 0% 88% / 95%);
	border: rgba(0, 0, 0, 0.171) 0.33px solid;
	transition: background-color 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
	box-shadow: 0 0 8px -4px hsl(0deg 0% 0% / 20%);
	height: 3rem;
	color: hsla(0, 0%, 18%, 1);
	border-radius: 50%;
	opacity: 1;
	padding: 0;
	width: 3rem;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;

	contain: strict;
	isolation: isolate;
	&:hover {
		background-color: rgb(233, 233, 233);
		box-shadow: -1px -1px 8px -12px hsl(0deg 0% 0% / 20%) inset, 1px 1px 10px -6px hsl(0deg 0% 0% / 10%) inset;
		color: #111111e0;
	}

	&:active {
		background-color: rgb(223, 223, 223);
		box-shadow: 0 0 12px -9px hsl(0deg 0% 7% / 88%) inset, inset -2px -2px 5px -9px hsl(0deg 0% 8% / 92%);
	}

	@media screen and (max-width: 640px) {
		display: none !important;
		visibility: hidden;
	}
}

.left {
	left: 0;
	transform: translateX(-1.75em);

	@media screen and (min-width: 640px) and (max-width: 1000px) {
		transform: translateX(0em);
	}
}

.right {
	right: 0;
	transform: translateX(1.75em);

	@media screen and (min-width: 640px) and (max-width: 1000px) {
		transform: translateX(0);
	}
}

.section {
	-webkit-overflow-scrolling: touch;
	position: relative;

	margin-bottom: 2.88em;

	border-radius: var(--sm-radius);

	contain: layout style;

	@media screen and (min-width: 720px) {
		margin-bottom: 2.3339em;
	}
}

.showMoreBtn {
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
}

.scroll {
	--thumbnail-size: calc(2vh + 13em);

	@include media-query-down(xs) {
		--thumbnail-size: 14em;
	}
	@include media-query(sm) {
		--thumbnail-size: calc(1vh + 13em);
	}

	@include media-query(md) {
		--thumbnail-size: calc(1vh + 14em);
	}

	@include media-query(lg) {
		--thumbnail-size: calc(1vh + 14em);
	}

	@include media-query(xl) {
		--thumbnail-size: calc(1vmin + 13.5em);
	}
	@include media-query-up(xxl) {
		--thumbnail-size: calc(1vmin + 13.5em);
	}

	--column-width: calc(var(--thumbnail-size) + 1.5rem);
}

.scroll {
	contain: layout paint style;
	height: auto;

	display: flex;
	flex-direction: row;
	overflow-x: scroll;
	overflow-y: visible;
	width: auto;
	-ms-scroll-snap-type: x mandatory;
	scroll-snap-type: x mandatory;
	border-radius: inherit;
	overflow-anchor: none;
	-webkit-overflow-scrolling: touch;
	scrollbar-gutter: 0.833333rem;
	scrollbar-width: thin;
	contain: layout style paint;
	touch-action: pan-x pan-y;

	&::-webkit-scrollbar {
		width: 0;
		height: 0;
	}

	&::-webkit-scrollbar-track {
		border-radius: 0.625rem;
		height: 0;
		width: 0%;
		background-clip: content-box;
		border-radius: 0.833333rem;
		border: transparent solid 0.0983333rem;
	}

	&::-webkit-scrollbar-thumb {
		background-color: #424242c4;
		border-radius: 0;
		width: 0;
		scrollbar-width: 0;
		border: 0 solid #b8b8b800;
		background-clip: content-box;
	}

	&:last-child {
		padding-right: 0.5rem;
	}

	&:first-child {
		visibility: visible;
	}
}
